﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MeetIterator
{
    public class PancakeHouseMenu
    {
        ArrayList menuItems { get; }

        public PancakeHouseMenu()
        {
            menuItems = new ArrayList();

            AddItem(@"K&B's Pancake Breakfast",
                "Pancakes with scrambled eggs, and toast",
                true,
                2.99);
            AddItem(@"Regular Pancake Breakfast",
                "Pancakes with fried eggs, and toast",
                false,
                2.99);
            AddItem(@"BlueBerry Pancakes",
                "Pancakes made with fresh blueberries",
                true,
                3.49);
            AddItem(@"Waffles",
                "Waffles, with your choise of blueberries or strawberries",
                true,
                3.59);

        }

        public void AddItem(string name,
            string desciption,
            bool vegetarian,
            double price)
        {
            MenuItem menuItem = new MenuItem(name, desciption, vegetarian, price);
            menuItems.Add(menuItem);
        }

        public ArrayList GetMenuItems()
        {
            return menuItems;
        }

        public Iterator createIterator()
        {
            return new PancakeHouseMenuIterator(menuItems);
        }
    }
}

